<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>订单管理</title>

		<link href="/Public/person/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="/Public/person/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="/Public/person/css/personal.css" rel="stylesheet" type="text/css">
		<link href="/Public/person/css/orstyle.css" rel="stylesheet" type="text/css">

		<script src="/Public/person/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
		<script src="/Public/person/AmazeUI-2.4.2/assets/js/amazeui.js"></script>

		<!-- Theme CSS
		============================================ -->
   		<link href="/Public/mobilemall/css/themecss/so_megamenu.css" rel="stylesheet">
		<link id="color_scheme" href="/Public/mobilemall/css/theme.css" rel="stylesheet">

		 <!-- Libs CSS
		============================================ -->
	   	<link rel="stylesheet" href="/Public/mobilemall/css/bootstrap/css/bootstrap.min.css">
		<link href="/Public/mobilemall/css/font-awesome/css/font-awesome.min.css" rel="stylesheet">
		<link href="/Public/mobilemall/js/datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
	   	<link href="/Public/mobilemall/js/owl-carousel/owl.carousel.css" rel="stylesheet">
		<link href="/Public/mobilemall/css/themecss/lib.css" rel="stylesheet">
		<link href="/Public/mobilemall/js/jquery-ui/jquery-ui.min.css" rel="stylesheet">

	</head>

	<body style="background: #F5F8FA">
		<!--头 -->
			<!-- Header Container  -->
	<header id="header" class=" variantleft type_1">
<!-- Header Top -->
<div class="header-top compact-hidden">
	<div class="container">
		<div class="row">
			<div class="header-top-left form-inline col-sm-6 col-xs-12 compact-hidden">
				<div class="form-group languages-block ">
					<form action="index.html" method="post" enctype="multipart/form-data" id="bt-language">
						<a class="btn btn-xs dropdown-toggle" data-toggle="dropdown">
							<img src="/Public/mobilemall/image/demo/flags/cn.png" alt="Chinese" title="Chinese">
							<span class="">中文</span>
							<span class="fa fa-angle-down"></span>
						</a>
						<ul class="dropdown-menu">
							<li> <a href=""> <img class="image_flag" src="/Public/mobilemall/image/demo/flags/cn.png" alt="Chinese" title="Chinese" /> 中文 </a> </li>
							<li><a href=""><img class="image_flag" src="/Public/mobilemall/image/demo/flags/gb.png" alt="English" title="English" /> English </a></li>
							<li> <a href=""> <img class="image_flag" src="/Public/mobilemall/image/demo/flags/lb.png" alt="Arabic" title="Arabic" /> Arabic </a> </li>
						</ul>
					</form>
				</div>

				<div class="form-group currencies-block">
				
				<span class="btn btn-xs dropdown-toggle" style="margin-top: 5px;">
				<?php if(($_SESSION['USERNAME']) == ""): ?>&nbsp;&nbsp;亲，请先<a href="/Home/User/index">登录</a>
				，免费<a href="/Home/User/register">注册</a> 
				<?php else: ?>
				&nbsp;&nbsp;<?php echo (session('USERNAME')); ?>，你好<?php endif; ?>
				</span>

					
				</div>
			</div>
			<div class="header-top-right collapsed-block text-right  col-sm-6 col-xs-12 compact-hidden">
				<h5 class="tabBlockTitle visible-xs">More<a class="expander " href="#TabBlock-1"><i class="fa fa-angle-down"></i></a></h5>
				<div class="tabBlock" id="TabBlock-1">
					<ul class="top-link list-inline">
						<li class="account" id="my_account">
							<a href="#" title="My Account" class="btn btn-xs dropdown-toggle" data-toggle="dropdown"> <span >
							<?php if(($_SESSION['USERNAME']) == ""): else: ?>
							<?php echo (session('USERNAME')); ?>的<?php endif; ?>
							个人中心</span> <span class="fa fa-angle-down"></span></a>
							<ul class="dropdown-menu ">
								<li><a href="/Home/Person/index"><i class="fa fa-user"></i> 个人主页</a></li>
								<li><a href="/Home/User/userLoginout"><i class="fa fa-pencil-square-o"></i> 注销</a></li>
							</ul>
						</li>
						<li class="wishlist"><a href="/Home/Person/collection" id="wishlist-total" class="top-link-wishlist" title="Wish List (<?php echo ($colsum); ?>)"><span>收藏列表<?php echo ($colsum); ?></span></a></li>
						<li class="login"><a href="/Home/Shopcart/index" title="Shopping Cart"><span >购物车<?php echo ($shopcartnum); ?></span></a></li>
						<li class="checkout"><a href="/Home/Index/index.html" class="top-link-checkout" title="Checkout"><span >商城首页</span></a></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- //Header Top -->

<!-- Header center -->
<div class="header-center left">
	<div class="container">
		<div class="row">
			<!-- Logo -->
			<div class="navbar-logo col-md-3 col-sm-12 col-xs-12">
				<a href="index.html"><img src="/Public/mobilemall/image/demo/logos/theme_logo.png" title="Your Store" alt="Your Store" /></a>
			</div>
			<!-- //end Logo -->

			<!-- Search -->
			<div id="sosearchpro" class="col-sm-7 search-pro">
				<form method="GET" action="index.html">
					<div id="search0" class="search input-group">
						<div class="select_category filter_type icon-select">
							<select class="no-border" name="category_id" id="sort_list_sel">
								<option value="0">所有商品分类</option>
								
							</select>
						</div>
						
						<input class="autosearch-input form-control" type="text" value="" size="50" autocomplete="off" placeholder="搜索想要的商品" name="search">
						<span class="input-group-btn">
						<button type="button" class="button-search btn btn-primary" name="submit_search" onclick="searchgoods();"><i class="fa fa-search"></i></button>
						<script >
							function searchgoods() {
								var key = $("input[name='search']").val();
								location.href = '/Home/Search/result?key='+key;
							}
						</script>
						</span>
						
					</div>
					<input type="hidden" name="route" value="product/search" />
				</form>
			</div>
			<!-- //end Search -->

		
		</div>

	</div>
</div>
<!-- //Header center -->




	</header>
        
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-order">

						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">订单管理</strong> / <small>Order</small></div>
						</div>
						<hr/>

						<div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

							<ul class="am-avg-sm-5 am-tabs-nav am-nav am-nav-tabs">
								<li class="am-active"><a href="#tab1">所有订单</a></li>
								<!-- <li><a href="#tab2">待付款</a></li> -->
								<li><a href="#tab3">待发货</a></li>
								<li><a href="#tab4">待收货</a></li>
								<li><a href="#tab5">待评价</a></li>
							</ul>

							<div class="am-tabs-bd">
								<div class="am-tab-panel am-fade am-in am-active" id="tab1">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											
											<?php if(is_array($orderdatalist)): $i = 0; $__LIST__ = $orderdatalist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="order-status5">
					                                                                                                        <div class="order-title">
					                                                                                                                     <div class="dd-num">订单编号：<a href="javascript:;"><?php echo ($vo["id"]); ?></a></div>
					                                                                                                                     <span>成交时间：<?php echo (date('Y年m月d日 H:i:s' ,$vo["createtime"])); ?></span>
					                                                                                                        </div>
					                                                                                                        <div class="order-content">
					                                                                                                                     <div class="order-left">
					                                                                                                                                  <?php if(is_array($vo["goodslist"])): $i = 0; $__LIST__ = $vo["goodslist"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><ul class="item-list">
					                                                                                                                                                <li class="td td-item">
					                                                                                                                                                            <div class="item-pic">
					                                                                                                                                                                         <a href="#" class="J_MakePoint">
					                                                                                                                                                                                     <img src="<?php echo ($v["goodsimg"]["0"]); ?>" class="itempic J_ItemImg">
					                                                                                                                                                                         </a>
					                                                                                                                                                            </div>
					                                                                                                                                                            <div class="item-info">
					                                                                                                                                                                         <div class="item-basic-info">
					                                                                                                                                                                                      <a href="#">
					                                                                                                                                                                                                    <p><?php echo ($v["goodsname"]); ?></p>
					                                                                                                                                                                                                    
					                                                                                                                                                                                      </a>
					                                                                                                                                                                         </div>
					                                                                                                                                                            </div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-price">
					                                                                                                                                                            <div class="item-price">￥<?php echo ($v["goodsnow"]); ?></div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-number">
					                                                                                                                                                            <div class="item-number">
					                                                                                                                                                                        <span>×</span><?php echo ($v["number"]); ?>
					                                                                                                                                                            </div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-operation">
					                                                                                                                                                            <div class="item-operation">
					                                                                                                                                                                        <?php switch($vo["status"]): case "0": ?><a href="refund.html">退款</a><?php break;?>
					                                                                                                                                                                         <?php case "2": ?><a href="/Home/Goods/showgoods?goodsid=<?php echo ($v["id"]); ?>">评价</a><?php break; endswitch;?>
					                                                                                                                                                             </div>
					                                                                                                                                                </li>
					                                                                                                                                  </ul><?php endforeach; endif; else: echo "" ;endif; ?>


					                                                                                                                     </div>
					                                                                                                                     <div class="order-right">
					                                                                                                                                  <li class="td td-amount">
					                                                                                                                                                <div class="item-amount">
					                                                                                                                                                    合计：￥<?php echo ($vo["payprices"]); ?>
					                                                                                                                                                    <p>含运费：<span>0.00</span></p>
					                                                                                                                                                </div>
					                                                                                                                                   </li>
					                                                                                                                                  <div class="move-right">
					                                                                                                                                                <li class="td td-status">
					                                                                                                                                                            <?php switch($vo["status"]): case "0": ?><div class="item-status">
					                                                                                                                                                                                    <p class="Mystatus">已付款</p>
					                                                                                                                                                                                    <p class="order-info">等待发货</p>
					                                                                                                                                                                         </div><?php break;?>
					                                                                                                                                                            <?php case "1": ?><div class="item-status">
					                                                                                                                                                                                    <p class="Mystatus">卖家已发货</p>
					                                                                                                                                                                                    <p class="order-info">等待收货</p>
					                                                                                                                                                                          </div><?php break;?>
					                                                                                                                                                            <?php case "2": ?><div class="item-status">
					                                                                                                                                                                                    <p class="Mystatus">已收货</p>
					                                                                                                                                                                                    <p class="order-info">购物完成</p>
					                                                                                                                                                                         </div><?php break; endswitch;?>
					                                                                                                                                                              
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-change">
					                                                                                                                                               	 <?php switch($vo["status"]): case "0": ?><div class="am-btn am-btn-danger anniu" onclick="shipment('<?php echo ($vo["id"]); ?>');">提醒发货</div><?php break;?>
					                                                                                                                                                            <?php case "1": ?><div class="am-btn am-btn-danger anniu" onclick="receipt('<?php echo ($vo["id"]); ?>')">确认收货</div><?php break;?>
					                                                                                                                                                            <?php case "2": ?><div class="am-btn am-btn-danger anniu"
					                                                                                                                                                                        onclick="delord('<?php echo ($vo["id"]); ?>')">删除订单</div><?php break; endswitch;?>
					                                                                                                                                                </li>
					                                                                                                                                   </div>
					                                                                                                                     </div>
					                                                                                                        </div>
					                                                                                            </div><?php endforeach; endif; else: echo "" ;endif; ?>
					                                                                              <!-- 分页链接 -->
					                                                                              <div class="am-fr">
					                                                                                            <?php echo ($show); ?>
					                                                                              </div>
											
										</div>

									</div>

								</div>
								
								<div class="am-tab-panel am-fade" id="tab3">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											 <?php if(is_array($orderlist)): $i = 0; $__LIST__ = $orderlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if(($vo["status"]) == "0"): ?><div class="order-status5">
					                                                                                                        <div class="order-title">
					                                                                                                                     <div class="dd-num">订单编号：<a href="javascript:;"><?php echo ($vo["id"]); ?></a></div>
					                                                                                                                     <div class="dd-num">买家昵称：<a href="javascript:;"><?php echo ($vo["username"]); ?></a></div>
					                                                                                                                     <span>成交时间：<?php echo (date('Y年m月d日 H:i:s' ,$vo["createtime"])); ?></span>
					                                                                                                        </div>
					                                                                                                        <div class="order-content">
					                                                                                                                     <div class="order-left">
					                                                                                                                                  <?php if(is_array($vo["goodslist"])): $i = 0; $__LIST__ = $vo["goodslist"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><ul class="item-list">
					                                                                                                                                                <li class="td td-item">
					                                                                                                                                                            <div class="item-pic">
					                                                                                                                                                                         <a href="#" class="J_MakePoint">
					                                                                                                                                                                                     <img src="<?php echo ($v["goodsimg"]["0"]); ?>" class="itempic J_ItemImg">
					                                                                                                                                                                         </a>
					                                                                                                                                                            </div>
					                                                                                                                                                            <div class="item-info">
					                                                                                                                                                                         <div class="item-basic-info">
					                                                                                                                                                                                      <a href="#">
					                                                                                                                                                                                                    <p><?php echo ($v["goodsname"]); ?></p>
					                                                                                                                                                                                                    
					                                                                                                                                                                                      </a>
					                                                                                                                                                                         </div>
					                                                                                                                                                            </div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-price">
					                                                                                                                                                            <div class="item-price">￥<?php echo ($v["goodsnow"]); ?></div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-number">
					                                                                                                                                                            <div class="item-number">
					                                                                                                                                                                        <span>×</span><?php echo ($v["number"]); ?>
					                                                                                                                                                            </div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-operation">
					                                                                                                                                                            <div class="item-operation">
					                                                                                                                                                                         <a href="refund.html">退款</a>
					                                                                                                                                                             </div>
					                                                                                                                                                </li>
					                                                                                                                                  </ul><?php endforeach; endif; else: echo "" ;endif; ?>


					                                                                                                                     </div>
					                                                                                                                     <div class="order-right">
					                                                                                                                                  <li class="td td-amount">
					                                                                                                                                                <div class="item-amount">
					                                                                                                                                                    合计：￥<?php echo ($vo["payprices"]); ?>
					                                                                                                                                                    <p>含运费：<span>0.00</span></p>
					                                                                                                                                                </div>
					                                                                                                                                   </li>
					                                                                                                                                  <div class="move-right">
					                                                                                                                                                <li class="td td-status">
					                                                                                                                                                             <div class="item-status">
					                                                                                                                                                                        <p class="Mystatus">已付款</p>
					                                                                                                                                                                        <p class="order-info">等待发货</p>
					                                                                                                                                                             </div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-change">
					                                                                                                                                                            <div class="am-btn am-btn-danger anniu" onclick="shipment('<?php echo ($vo["id"]); ?>');">提醒发货</div>
					                                                                                                                                                </li>
					                                                                                                                                   </div>
					                                                                                                                     </div>
					                                                                                                        </div>
					                                                                                            </div>
					                                                                                           <?php else: endif; endforeach; endif; else: echo "" ;endif; ?>
					                                                                              <!-- 分页链接 -->
					                                                                              <div class="am-fr">
					                                                                                           
					                                                                              </div>
										</div>
									</div>
								</div>
								<div class="am-tab-panel am-fade" id="tab4">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											<?php if(is_array($orderlist)): $i = 0; $__LIST__ = $orderlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if(($vo["status"]) == "1"): ?><div class="order-status5">
					                                                                                                        <div class="order-title">
					                                                                                                                     <div class="dd-num">订单编号：<a href="javascript:;"><?php echo ($vo["id"]); ?></a></div>
					                                                                                                                     <div class="dd-num">买家昵称：<a href="javascript:;"><?php echo ($vo["username"]); ?></a></div>
					                                                                                                                     <span>成交时间：<?php echo (date('Y年m月d日 H:i:s' ,$vo["createtime"])); ?></span>
					                                                                                                        </div>
					                                                                                                        <div class="order-content">
					                                                                                                                     <div class="order-left">
					                                                                                                                                  <?php if(is_array($vo["goodslist"])): $i = 0; $__LIST__ = $vo["goodslist"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><ul class="item-list">
					                                                                                                                                                <li class="td td-item">
					                                                                                                                                                            <div class="item-pic">
					                                                                                                                                                                         <a href="#" class="J_MakePoint">
					                                                                                                                                                                                     <img src="<?php echo ($v["goodsimg"]["0"]); ?>" class="itempic J_ItemImg">
					                                                                                                                                                                         </a>
					                                                                                                                                                            </div>
					                                                                                                                                                            <div class="item-info">
					                                                                                                                                                                         <div class="item-basic-info">
					                                                                                                                                                                                      <a href="#">
					                                                                                                                                                                                                    <p><?php echo ($v["goodsname"]); ?></p>
					                                                                                                                                                                                                    
					                                                                                                                                                                                      </a>
					                                                                                                                                                                         </div>
					                                                                                                                                                            </div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-price">
					                                                                                                                                                            <div class="item-price">￥<?php echo ($v["goodsnow"]); ?></div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-number">
					                                                                                                                                                            <div class="item-number">
					                                                                                                                                                                        <span>×</span><?php echo ($v["number"]); ?>
					                                                                                                                                                            </div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-operation">
					                                                                                                                                                            <div class="item-operation">
					                                                                                                                                                                         
					                                                                                                                                                             </div>
					                                                                                                                                                </li>
					                                                                                                                                  </ul><?php endforeach; endif; else: echo "" ;endif; ?>


					                                                                                                                     </div>
					                                                                                                                     <div class="order-right">
					                                                                                                                                  <li class="td td-amount">
					                                                                                                                                                <div class="item-amount">
					                                                                                                                                                    合计：￥<?php echo ($vo["payprices"]); ?>
					                                                                                                                                                    <p>含运费：<span>0.00</span></p>
					                                                                                                                                                </div>
					                                                                                                                                   </li>
					                                                                                                                                  <div class="move-right">
					                                                                                                                                                <li class="td td-status">
					                                                                                                                                                            <div class="item-status">
					                                                                                                                                                                        <p class="Mystatus">卖家已发货</p>
					                                                                                                                                                                        <p class="order-info">等待收货</p>
					                                                                                                                                                            </div>
					                                                                                                                                                </li>
					                                                                                                                                                <li class="td td-change">
					                                                                                                                                                            <div class="am-btn am-btn-danger anniu" onclick="receipt('<?php echo ($vo["id"]); ?>')">确认收货</div>
					                                                                                                                                                </li>
					                                                                                                                                   </div>
					                                                                                                                     </div>
					                                                                                                        </div>
					                                                                                            </div>
					                                                                                           <?php else: endif; endforeach; endif; else: echo "" ;endif; ?>
					                                                                              <!-- 分页链接 -->
					                                                                              <div class="am-fr">
					                                                                                          
					                                                                              </div>
										</div>
									</div>
								</div>

								<div class="am-tab-panel am-fade" id="tab5">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											<?php if(is_array($orderlist)): $i = 0; $__LIST__ = $orderlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; if(($vo["status"]) == "2"): ?><div class="order-status5">
						                                                                                            <div class="order-title">
						                                                                                                         <div class="dd-num">订单编号：<a href="javascript:;"><?php echo ($vo["id"]); ?></a></div>
						                                                                                                         <div class="dd-num">买家昵称：<a href="javascript:;"><?php echo ($vo["username"]); ?></a></div>
						                                                                                                         <span>成交时间：<?php echo (date('Y年m月d日 H:i:s' ,$vo["createtime"])); ?></span>
						                                                                                            </div>
						                                                                                            <div class="order-content">
						                                                                                                         <div class="order-left">
						                                                                                                                      <?php if(is_array($vo["goodslist"])): $i = 0; $__LIST__ = $vo["goodslist"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><ul class="item-list">
						                                                                                                                                    <li class="td td-item">
						                                                                                                                                                <div class="item-pic">
						                                                                                                                                                             <a href="#" class="J_MakePoint">
						                                                                                                                                                                         <img src="<?php echo ($v["goodsimg"]["0"]); ?>" class="itempic J_ItemImg">
						                                                                                                                                                             </a>
						                                                                                                                                                </div>
						                                                                                                                                                <div class="item-info">
						                                                                                                                                                             <div class="item-basic-info">
						                                                                                                                                                                          <a href="#">
						                                                                                                                                                                                        <p><?php echo ($v["goodsname"]); ?></p>
						                                                                                                                                                                                        
						                                                                                                                                                                          </a>
						                                                                                                                                                             </div>
						                                                                                                                                                </div>
						                                                                                                                                    </li>
						                                                                                                                                    <li class="td td-price">
						                                                                                                                                                <div class="item-price">￥<?php echo ($v["goodsnow"]); ?></div>
						                                                                                                                                    </li>
						                                                                                                                                    <li class="td td-number">
						                                                                                                                                                <div class="item-number">
						                                                                                                                                                            <span>×</span><?php echo ($v["number"]); ?>
						                                                                                                                                                </div>
						                                                                                                                                    </li>
						                                                                                                                                    <li class="td td-operation">
						                                                                                                                                                <div class="item-operation">
						                                                                                                                                                             <a href="refund.html">评价</a>
						                                                                                                                                                 </div>
						                                                                                                                                    </li>
						                                                                                                                      </ul><?php endforeach; endif; else: echo "" ;endif; ?>


						                                                                                                         </div>
						                                                                                                         <div class="order-right">
						                                                                                                                      <li class="td td-amount">
						                                                                                                                                    <div class="item-amount">
						                                                                                                                                        合计：￥<?php echo ($vo["payprices"]); ?>
						                                                                                                                                        <p>含运费：<span>0.00</span></p>
						                                                                                                                                    </div>
						                                                                                                                       </li>
						                                                                                                                      <div class="move-right">
						                                                                                                                                    <li class="td td-status">
						                                                                                                                                                <div class="item-status">
						                                                                                                                                                             <p class="Mystatus">已收货</p>
						                                                                                                                                                             <p class="order-info">购物完成</p>
						                                                                                                                                                </div>
						                                                                                                                                    </li>
						                                                                                                                                    <li class="td td-change">
						                                                                                                                                                <div class="am-btn am-btn-danger anniu" onclick="delord('<?php echo ($vo["id"]); ?>')">删除订单</div>
						                                                                                                                                    </li>
						                                                                                                                       </div>
						                                                                                                         </div>
						                                                                                            </div>
						                                                                               </div>
						                                                                               <?php else: endif; endforeach; endif; else: echo "" ;endif; ?>
						                                                                  <!-- 分页链接 -->
						                                                                 <div class="am-fr">
						                                                                              
						                                                                  </div>
			
										</div>

									</div>

								</div>
							</div>

						</div>
					</div>
				</div>
				<!--底部-->
				<!-- <div class="footer">
					<div class="footer-hd">
						<p>
							<a href="#">恒望科技</a>
							<b>|</b>
							<a href="#">商城首页</a>
							<b>|</b>
							<a href="#">支付宝</a>
							<b>|</b>
							<a href="#">物流</a>
						</p>
					</div>
					<div class="footer-bd">
						<p>
							<a href="#">关于恒望</a>
							<a href="#">合作伙伴</a>
							<a href="#">联系我们</a>
							<a href="#">网站地图</a>
							<em>© 2015-2025 Hengwang.com 版权所有</em>
						</p>
					</div>

				</div> -->
			</div>
			<aside class="menu">
				<ul>
					<li class="person ">
						<a href="/Home/Person/index"><i class="am-icon-user"></i>个人中心</a>
					</li>
					<li class="person">
						<a href="#"><i class="am-icon-newspaper-o"></i>个人资料</a>
						<ul>
							<li> <a href="/Home/Person/information">个人信息</a></li>
							<li> <a href="/Home/Person/safety">安全设置</a></li>
							<li> <a href="/Home/Person/address">收货地址</a></li>
						</ul>
					</li>
					<li class="person">
						<a href="#"><i class="am-icon-balance-scale"></i>我的交易</a>
						<ul>
							<li class="active"><a href="/Home/Person/order">订单管理</a></li>
						</ul>
					</li>
					

					<li class="person">
						<a href="#"><i class="am-icon-tags"></i>我的小窝</a>
						<ul>
							<li> <a href="/Home/Person/collection">收藏</a></li>
							<li> <a href="/Home/Person/foot">足迹</a></li>
							<li> <a href="/Home/Person/comment">评价</a></li>
							<!-- <li> <a href="news.html">消息</a></li> -->
						</ul>
					</li>

				</ul>

			</aside>
		</div>
		<!--底部-->
		<footer class="footer-container">
		<!-- Footer Top Container -->
		<section class="footer-top">
			<div class="container content">
				<div class="row">
					<div class="col-sm-6 col-md-3 box-information">
						<div class="module clearfix">
							<h3 class="modtitle">信息</h3>
							<div class="modcontent">
								<ul class="menu">
									<li><a href="#">关于我们</a></li>
									<li><a href="#">FAQ</a></li>
									<li><a href="#">订单历史</a></li>
									<li><a href="#">订单信息</a></li>
								</ul>
							</div>
						</div>
					</div>

					<div class="col-sm-6 col-md-3 box-service">
						<div class="module clearfix">
							<h3 class="modtitle">顾客服务</h3>
							<div class="modcontent">
								<ul class="menu">
									<li><a href="#">联系我们</a></li>
									<li><a href="#">回复</a></li>
									<li><a href="#">网页地图</a></li>
									<li><a href="#">我的账号</a></li>
								</ul>
							</div>
						</div>
					</div>

					<div class="col-sm-6 col-md-3 box-account">
						<div class="module clearfix">
							<h3 class="modtitle">我的账号</h3>
							<div class="modcontent">
								<ul class="menu">
									<li><a href="#">品牌</a></li>
									<li><a href="#">信用卡</a></li>
									<li><a href="#">所属企业</a></li>
									<li><a href="#">特价</a></li>
									<li><a href="#" target="_blank">Our Blog</a></li>
								</ul>
							</div>
						</div>
					</div>

					<div class="col-sm-6 col-md-3 collapsed-block ">
						<div class="module clearfix">
							<h3 class="modtitle">联系我们	</h3>
							<div class="modcontent">
								<ul class="contact-address">
									<li><span class="fa fa-map-marker"></span> My Company, 42 avenue des Champs Elysées 75000 Paris France</li>
									<li><span class="fa fa-envelope-o"></span> Email: <a href="#"> sales@yourcompany.com</a></li>
									<li><span class="fa fa-phone">&nbsp;</span> Phone 1: 0123456789 <br>Phone 2: (123) 4567890</li>
								</ul>
							</div>
						</div>
					</div>

					
				</div>
			</div>
		</section>
		<!-- /Footer Top Container -->
		
		<!-- Footer Bottom Container -->
		<div class="footer-bottom-block ">
			<div class=" container">
				<div class="row">
					<div class="col-sm-5 copyright-text">Copyright &copy; 2017.Ayfkm All rights reserved.</div>
					<div class="col-sm-7">
						
					</div>
					<!--Back To Top-->
					<div class="back-to-top"><i class="fa fa-angle-up"></i><span> Top </span></div>

				</div>
			</div>
		</div>
		<!-- /Footer Bottom Container -->
		
		
	</footer>
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="/Public/mobilemall/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="/Public/mobilemall/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/Public/mobilemall/js/owl-carousel/owl.carousel.js"></script>
<script type="text/javascript" src="/Public/mobilemall/js/themejs/libs.js"></script>
<script type="text/javascript" src="/Public/mobilemall/js/unveil/jquery.unveil.js"></script>
<script type="text/javascript" src="/Public/mobilemall/js/countdown/jquery.countdown.min.js"></script>
<script type="text/javascript" src="/Public/mobilemall/js/dcjqaccordion/jquery.dcjqaccordion.2.8.min.js"></script>
<script type="text/javascript" src="/Public/mobilemall/js/datetimepicker/moment.js"></script>
<script type="text/javascript" src="/Public/mobilemall/js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="/Public/mobilemall/js/jquery-ui/jquery-ui.min.js"></script>

<!-- Theme files
============================================ -->
<script type="text/javascript" src="/Public/mobilemall/js/themejs/application.js"></script>
<script >
	//提醒卖家发货
	function shipment(orderid){
		$.post("/API/Message/Promptshipment",{"orderid":orderid},function(res){
			alert(res.data);
		});
	}

	//确认收货
	function  receipt(orderid){
		$.post("/API/Message/Confirmreceipt",{"orderid":orderid},function(res){
			alert(res.data);
			window.location.href='<?php echo U('/Home/Person/order');?>';
		});
	}

	function delord(orderid){
		if (confirm("确定删除订单吗?")) {
			$.post("/API/Message/Delorder",{"orderid":orderid},function(res){
				alert(res.data);
				window.location.href='<?php echo U('/Home/Person/order');?>';
			});
		}
	}
</script>
	</body>

</html>